// 全局配置

@font-face {
    font-family: JetBrainsMono;
    src: url('../assets/JetBrainsMono-Regular.woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 5px;
    /*高宽分别对应横竖滚动条的尺寸*/
    height: 4px;
}

::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 3px;
    background-color: var(--color-text-2, var(--color-neutral-4));
}

::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    border-radius: 3px;
    background: var(--color-bg-2);
}

html,
body {
    height: 100%;
}

code {
    font-family: JetBrainsMono consolas monospace sans-serif;
    letter-spacing: 1px;
}

#app {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-bg-1);
    color: var(--color-text-1);
}

#header {
    position: fixed;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 40px;
    display: flex;
    background-color: var(--color-bg-2);
    border-bottom: 1px solid var(--color-border-2);
    justify-content: space-between;
    -webkit-app-region: drag;

    .left {
        display: flex;

        .logo {
            width: 140px;
            min-width: 140px;
            font-weight: bold;
            text-align: center;
            line-height: 40px;
            font-size: 1.2em;
            user-select: none;
        }

        .full-screen {
            padding: 12px;
            margin: 4px;
            cursor: pointer;
            -webkit-app-region: no-drag;
        }

        .url-select {
            -webkit-app-region: no-drag;
            margin: 4px;
        }

        .refresh {
            margin: 4px;
            -webkit-app-region: no-drag;
        }
    }

    .right {
        display: flex;
        padding-right: 4px;

        .menu-item {
            padding: 4px 9px;
            margin: 4px;
            -webkit-app-region: no-drag;

            .el-icon {
                color: var(--color-text-1);
            }

            &:hover {
                background-color: var(--color-bg-1);
                border-radius: 4px;
            }

        }

    }
}

#main {
    position: fixed;
    top: 41px;
    left: 1px;
    right: 01px;
    bottom: 1px;
    display: flex;
}

#navigation {
    height: 100%;
    width: fit-content;
    background-color: var(--color-bg-2);
    overflow: hidden;
    transition: all 0.2s;
    position: relative;
    border-right: 1px solid var(--color-border-2);

    .version {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 20px;
        text-align: center;
        font-size: 14px;

    }

}


#container {
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-2);
    position: relative;
}


.desktop {
    border: 1px solid var(--color-border-2);
}

.global-spin {
    height: calc(100% - 49px) !important;
    margin-top: 49px;
}

// 重定义样式

.arco-select {
    height: 32px;

    .arco-select-view-input {
        padding-top: 0;
    }
}

.arco-spin {
    width: 100%;
    height: 100%;
}

.arco-btn {
    margin-left: 8px;

    &:first-child {
        margin-left: 0;
    }
}

.arco-btn-group {
    margin-left: 8px;

    .arco-btn {
        margin-left: 0;
    }
}

.arco-drawer-container {
    z-index: 1002 !important;
}


// 公共样式

.url-copy {
    background-color: var(--color-border-2);
    color: var(--color-text-1);
    border-radius: 11px;
    padding: 1px 5px;
    margin-left: 5px;
    margin-top: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;

    &:hover {
        filter: invert(100%);
    }
}


.es-dialog .arco-modal-body {
    height: 70vh;
    overflow: auto;
}

.bridge {
    display: flex;
    width: 100px;
    height: 25px;
    line-height: 25px;
    border-radius: 10%;
    margin-left: 8px;

    &:first-child {
        margin-left: 0;
    }

    &[type=primary] {
        .label {
            background-color: rgb(var(--arcoblue-6));
        }
    }

    &[type=success] {
        .label {
            background-color: rgb(var(--green-6));
        }
    }

    &[type=warning] {
        .label {
            background-color: rgb(var(--orange-6));
        }
    }

    &[type=error] {
        .label {
            background-color: rgb(var(--red-6));
        }
    }

    .label {
        width: 50px;
        text-align: center;

    }

    .value {
        width: 50px;
        text-align: center;
        border-top: 1px solid var(--color-border-2);
        border-right: 1px solid var(--color-border-2);
        border-bottom: 1px solid var(--color-border-2);
        border-left: 0 solid var(--color-border-2);
    }

}

.dot {
    margin-top: 7px;
    margin-right: 7px;
    width: 8px;
    height: 8px;
    border-radius: 100%;
}